<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::mallocSharedPtr&lt; realT &gt; 模板类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="../../d0/d38/classwheels_1_1malloc_shared_ptr-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::mallocSharedPtr&lt; realT &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a>&gt;</code></p>
<div class="dynheader">
类 wheels::mallocSharedPtr&lt; realT &gt; 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/d20/classwheels_1_1malloc_shared_ptr__inherit__graph.png" border="0" usemap="#awheels_1_1malloc_shared_ptr_3_01real_t_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="awheels_1_1malloc_shared_ptr_3_01real_t_01_4_inherit__map" id="awheels_1_1malloc_shared_ptr_3_01real_t_01_4_inherit__map">
<area shape="rect" title=" " alt="" coords="114,124,331,583"/>
<area shape="rect" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html" title=" " alt="" coords="5,647,208,1137"/>
<area shape="poly" title=" " alt="" coords="173,598,162,648,157,646,168,596"/>
<area shape="rect" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html" title=" " alt="" coords="232,663,445,1121"/>
<area shape="poly" title=" " alt="" coords="278,596,292,662,287,663,272,597"/>
<area shape="rect" title=" " alt="" coords="146,5,299,75"/>
<area shape="poly" title=" " alt="" coords="225,90,225,124,220,124,220,90"/>
</map>
</div>
<div class="dynheader">
wheels::mallocSharedPtr&lt; realT &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d9/de1/classwheels_1_1malloc_shared_ptr__coll__graph.png" border="0" usemap="#awheels_1_1malloc_shared_ptr_3_01real_t_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1malloc_shared_ptr_3_01real_t_01_4_coll__map" id="awheels_1_1malloc_shared_ptr_3_01real_t_01_4_coll__map">
<area shape="rect" title=" " alt="" coords="5,123,223,581"/>
<area shape="rect" title=" " alt="" coords="37,5,191,75"/>
<area shape="poly" title=" " alt="" coords="117,90,117,123,111,123,111,90"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a6b0537923629fc45dc6c604963af2b5a" id="r_a6b0537923629fc45dc6c604963af2b5a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6b0537923629fc45dc6c604963af2b5a">mallocSharedPtr</a> ()</td></tr>
<tr class="separator:a6b0537923629fc45dc6c604963af2b5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01621c489199b7f4f31a086d9c1ec619" id="r_a01621c489199b7f4f31a086d9c1ec619"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a01621c489199b7f4f31a086d9c1ec619">mallocSharedPtr</a> (size_t count)</td></tr>
<tr class="separator:a01621c489199b7f4f31a086d9c1ec619"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa67b991a1c6aed1e4c5daf0a964b5353" id="r_aa67b991a1c6aed1e4c5daf0a964b5353"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa67b991a1c6aed1e4c5daf0a964b5353">mallocSharedPtr</a> (realT *data)</td></tr>
<tr class="separator:aa67b991a1c6aed1e4c5daf0a964b5353"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef0fbafe58f977c14de4ac63f8404f2e" id="r_aef0fbafe58f977c14de4ac63f8404f2e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aef0fbafe58f977c14de4ac63f8404f2e">mallocSharedPtr</a> (const <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a>&lt; realT &gt; &amp;b)</td></tr>
<tr class="separator:aef0fbafe58f977c14de4ac63f8404f2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a010a71dee4615c36c62b23a0af176025" id="r_a010a71dee4615c36c62b23a0af176025"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a010a71dee4615c36c62b23a0af176025">mallocSharedPtr</a> (<a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a>&lt; realT &gt; &amp;&amp;b)</td></tr>
<tr class="separator:a010a71dee4615c36c62b23a0af176025"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad18dff8e10c0fa6e1f43f8b895d86a0a" id="r_ad18dff8e10c0fa6e1f43f8b895d86a0a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad18dff8e10c0fa6e1f43f8b895d86a0a">operator=</a> (const <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a>&lt; realT &gt; &amp;b)</td></tr>
<tr class="separator:ad18dff8e10c0fa6e1f43f8b895d86a0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5de32bcf5ba8ba18f6dc7898b77a61f" id="r_ae5de32bcf5ba8ba18f6dc7898b77a61f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae5de32bcf5ba8ba18f6dc7898b77a61f">operator=</a> (<a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a>&lt; realT &gt; &amp;&amp;b)</td></tr>
<tr class="separator:ae5de32bcf5ba8ba18f6dc7898b77a61f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd7490728bfadb1973034cfdac02fbbd" id="r_afd7490728bfadb1973034cfdac02fbbd"><td class="memItemLeft" align="right" valign="top">realT &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afd7490728bfadb1973034cfdac02fbbd">operator[]</a> (size_t pos)</td></tr>
<tr class="separator:afd7490728bfadb1973034cfdac02fbbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ce9dba38c12f653e53f44f03a47d88d" id="r_a5ce9dba38c12f653e53f44f03a47d88d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5ce9dba38c12f653e53f44f03a47d88d">append</a> (const realT *data, size_t len)</td></tr>
<tr class="memdesc:a5ce9dba38c12f653e53f44f03a47d88d"><td class="mdescLeft">&#160;</td><td class="mdescRight">追加数据内容。追加数据内容的时候可能发生重新分配内存。  <br /></td></tr>
<tr class="separator:a5ce9dba38c12f653e53f44f03a47d88d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5513e51c85956d45e8578103eb5feb9a" id="r_a5513e51c85956d45e8578103eb5feb9a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5513e51c85956d45e8578103eb5feb9a">append</a> (const realT &amp;data)</td></tr>
<tr class="separator:a5513e51c85956d45e8578103eb5feb9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23b32d558ab10dba3e3b88905a001a16" id="r_a23b32d558ab10dba3e3b88905a001a16"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a23b32d558ab10dba3e3b88905a001a16">size</a> (size_t len)</td></tr>
<tr class="memdesc:a23b32d558ab10dba3e3b88905a001a16"><td class="mdescLeft">&#160;</td><td class="mdescRight">指定缓冲区大小  <br /></td></tr>
<tr class="separator:a23b32d558ab10dba3e3b88905a001a16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18709a57055dc8d2e30a76924816fce4" id="r_a18709a57055dc8d2e30a76924816fce4"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a18709a57055dc8d2e30a76924816fce4">size</a> ()</td></tr>
<tr class="separator:a18709a57055dc8d2e30a76924816fce4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6d04b824d0c91bfbb2749704eb3a0b9" id="r_ab6d04b824d0c91bfbb2749704eb3a0b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab6d04b824d0c91bfbb2749704eb3a0b9">dataLen</a> (size_t len)</td></tr>
<tr class="memdesc:ab6d04b824d0c91bfbb2749704eb3a0b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">指定当前的数据长度  <br /></td></tr>
<tr class="separator:ab6d04b824d0c91bfbb2749704eb3a0b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23df12e0d8805d51b9741e61df789f53" id="r_a23df12e0d8805d51b9741e61df789f53"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a23df12e0d8805d51b9741e61df789f53">dataLen</a> () const</td></tr>
<tr class="memdesc:a23df12e0d8805d51b9741e61df789f53"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取当前的数据长度  <br /></td></tr>
<tr class="separator:a23df12e0d8805d51b9741e61df789f53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac47be47c6d1268e723cff93db01734fd" id="r_ac47be47c6d1268e723cff93db01734fd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac47be47c6d1268e723cff93db01734fd">clear</a> ()</td></tr>
<tr class="separator:ac47be47c6d1268e723cff93db01734fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12a56cc8b1b69fdaeb53d8cc63292702" id="r_a12a56cc8b1b69fdaeb53d8cc63292702"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a12a56cc8b1b69fdaeb53d8cc63292702">mallocSharedPtr</a> (const realT *data, size_t len)</td></tr>
<tr class="memdesc:a12a56cc8b1b69fdaeb53d8cc63292702"><td class="mdescLeft">&#160;</td><td class="mdescRight">自动分配内存，并且拷贝传入的指针内容  <br /></td></tr>
<tr class="separator:a12a56cc8b1b69fdaeb53d8cc63292702"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa70d2770b69c634fbe8a01351ffdb768" id="r_aa70d2770b69c634fbe8a01351ffdb768"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa70d2770b69c634fbe8a01351ffdb768">resize</a> (size_t s)</td></tr>
<tr class="memdesc:aa70d2770b69c634fbe8a01351ffdb768"><td class="mdescLeft">&#160;</td><td class="mdescRight">这个方法会放弃旧的数据内容  <br /></td></tr>
<tr class="separator:aa70d2770b69c634fbe8a01351ffdb768"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename realT&gt;<br />
class wheels::mallocSharedPtr&lt; realT &gt;</div>
<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00018">18</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a6b0537923629fc45dc6c604963af2b5a" name="a6b0537923629fc45dc6c604963af2b5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b0537923629fc45dc6c604963af2b5a">&#9670;&#160;</a></span>mallocSharedPtr() <span class="overload">[1/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::mallocSharedPtr </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00024">24</a> 行定义.</p>

</div>
</div>
<a id="a01621c489199b7f4f31a086d9c1ec619" name="a01621c489199b7f4f31a086d9c1ec619"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01621c489199b7f4f31a086d9c1ec619">&#9670;&#160;</a></span>mallocSharedPtr() <span class="overload">[2/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::mallocSharedPtr </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>count</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00029">29</a> 行定义.</p>

</div>
</div>
<a id="aa67b991a1c6aed1e4c5daf0a964b5353" name="aa67b991a1c6aed1e4c5daf0a964b5353"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa67b991a1c6aed1e4c5daf0a964b5353">&#9670;&#160;</a></span>mallocSharedPtr() <span class="overload">[3/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::mallocSharedPtr </td>
          <td>(</td>
          <td class="paramtype">realT *</td>          <td class="paramname"><span class="paramname"><em>data</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00042">42</a> 行定义.</p>

</div>
</div>
<a id="aef0fbafe58f977c14de4ac63f8404f2e" name="aef0fbafe58f977c14de4ac63f8404f2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef0fbafe58f977c14de4ac63f8404f2e">&#9670;&#160;</a></span>mallocSharedPtr() <span class="overload">[4/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::mallocSharedPtr </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a>&lt; realT &gt; &amp;</td>          <td class="paramname"><span class="paramname"><em>b</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00044">44</a> 行定义.</p>

</div>
</div>
<a id="a010a71dee4615c36c62b23a0af176025" name="a010a71dee4615c36c62b23a0af176025"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a010a71dee4615c36c62b23a0af176025">&#9670;&#160;</a></span>mallocSharedPtr() <span class="overload">[5/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::mallocSharedPtr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a>&lt; realT &gt; &amp;&amp;</td>          <td class="paramname"><span class="paramname"><em>b</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00046">46</a> 行定义.</p>

</div>
</div>
<a id="a12a56cc8b1b69fdaeb53d8cc63292702" name="a12a56cc8b1b69fdaeb53d8cc63292702"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12a56cc8b1b69fdaeb53d8cc63292702">&#9670;&#160;</a></span>mallocSharedPtr() <span class="overload">[6/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::mallocSharedPtr </td>
          <td>(</td>
          <td class="paramtype">const realT *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>自动分配内存，并且拷贝传入的指针内容 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data[</td><td>I ]， 传入的数据 </td></tr>
    <tr><td class="paramname">len[</td><td>I ]， 数据个数 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00133">133</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a5513e51c85956d45e8578103eb5feb9a" name="a5513e51c85956d45e8578103eb5feb9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5513e51c85956d45e8578103eb5feb9a">&#9670;&#160;</a></span>append() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::append </td>
          <td>(</td>
          <td class="paramtype">const realT &amp;</td>          <td class="paramname"><span class="paramname"><em>data</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00103">103</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../da/d39/classwheels_1_1malloc_shared_ptr_a5513e51c85956d45e8578103eb5feb9a_cgraph.png" border="0" usemap="#ada/d39/classwheels_1_1malloc_shared_ptr_a5513e51c85956d45e8578103eb5feb9a_cgraph" alt=""/></div>
<map name="ada/d39/classwheels_1_1malloc_shared_ptr_a5513e51c85956d45e8578103eb5feb9a_cgraph" id="ada/d39/classwheels_1_1malloc_shared_ptr_a5513e51c85956d45e8578103eb5feb9a_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,172,48"/>
<area shape="rect" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html#a5ce9dba38c12f653e53f44f03a47d88d" title="追加数据内容。追加数据内容的时候可能发生重新分配内存。" alt="" coords="220,5,386,48"/>
<area shape="poly" title=" " alt="" coords="172,24,204,24,204,29,172,29"/>
</map>
</div>

</div>
</div>
<a id="a5ce9dba38c12f653e53f44f03a47d88d" name="a5ce9dba38c12f653e53f44f03a47d88d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ce9dba38c12f653e53f44f03a47d88d">&#9670;&#160;</a></span>append() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::append </td>
          <td>(</td>
          <td class="paramtype">const realT *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>追加数据内容。追加数据内容的时候可能发生重新分配内存。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data[</td><td>I ] </td></tr>
    <tr><td class="paramname">len[</td><td>I ] </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">如果内存分配失败抛出std::runtime_error</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00080">80</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../da/d39/classwheels_1_1malloc_shared_ptr_a5ce9dba38c12f653e53f44f03a47d88d_icgraph.png" border="0" usemap="#ada/d39/classwheels_1_1malloc_shared_ptr_a5ce9dba38c12f653e53f44f03a47d88d_icgraph" alt=""/></div>
<map name="ada/d39/classwheels_1_1malloc_shared_ptr_a5ce9dba38c12f653e53f44f03a47d88d_icgraph" id="ada/d39/classwheels_1_1malloc_shared_ptr_a5ce9dba38c12f653e53f44f03a47d88d_icgraph">
<area shape="rect" title="追加数据内容。追加数据内容的时候可能发生重新分配内存。" alt="" coords="220,5,386,48"/>
<area shape="rect" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html#a5513e51c85956d45e8578103eb5feb9a" title=" " alt="" coords="5,5,172,48"/>
<area shape="poly" title=" " alt="" coords="204,29,172,29,172,24,204,24"/>
</map>
</div>

</div>
</div>
<a id="ac47be47c6d1268e723cff93db01734fd" name="ac47be47c6d1268e723cff93db01734fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac47be47c6d1268e723cff93db01734fd">&#9670;&#160;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::clear </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00126">126</a> 行定义.</p>

</div>
</div>
<a id="a23df12e0d8805d51b9741e61df789f53" name="a23df12e0d8805d51b9741e61df789f53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23df12e0d8805d51b9741e61df789f53">&#9670;&#160;</a></span>dataLen() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::dataLen </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>读取当前的数据长度 </p>
<dl class="section return"><dt>返回</dt><dd>返回当前的数据长度 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00122">122</a> 行定义.</p>

</div>
</div>
<a id="ab6d04b824d0c91bfbb2749704eb3a0b9" name="ab6d04b824d0c91bfbb2749704eb3a0b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6d04b824d0c91bfbb2749704eb3a0b9">&#9670;&#160;</a></span>dataLen() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::dataLen </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>指定当前的数据长度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">len</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00117">117</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../da/d39/classwheels_1_1malloc_shared_ptr_ab6d04b824d0c91bfbb2749704eb3a0b9_icgraph.png" border="0" usemap="#ada/d39/classwheels_1_1malloc_shared_ptr_ab6d04b824d0c91bfbb2749704eb3a0b9_icgraph" alt=""/></div>
<map name="ada/d39/classwheels_1_1malloc_shared_ptr_ab6d04b824d0c91bfbb2749704eb3a0b9_icgraph" id="ada/d39/classwheels_1_1malloc_shared_ptr_ab6d04b824d0c91bfbb2749704eb3a0b9_icgraph">
<area shape="rect" title="指定当前的数据长度" alt="" coords="222,175,388,217"/>
<area shape="rect" href="../../d8/dc6/classserial.html#aa4a211abe8ab54f217ae170b8fc92724" title=" " alt="" coords="44,5,135,32"/>
<area shape="poly" title=" " alt="" coords="281,163,235,103,205,72,172,46,134,30,137,25,175,42,209,69,239,100,285,160"/>
<area shape="rect" href="../../d8/dc6/classserial.html#ad6c571041b222a833922c81e1ba9ad50" title=" " alt="" coords="18,56,161,83"/>
<area shape="poly" title=" " alt="" coords="268,166,224,130,172,97,145,86,147,81,175,92,227,126,271,162"/>
<area shape="rect" href="../../d8/dc4/classtcp_server.html#ab2c194d28adea355f7c957cb2eff8a03" title="处理连接请求。接受连接后发出连接成功通知，通知参数提供新的连接对象指针" alt="" coords="5,107,174,133"/>
<area shape="poly" title=" " alt="" coords="235,171,173,148,138,137,140,131,175,143,237,166"/>
<area shape="rect" href="../../d7/d24/classssl_svr_connection.html#a8462f837935ec8d1557fe9c40bcc5907" title=" " alt="" coords="11,157,168,184"/>
<area shape="poly" title=" " alt="" coords="206,187,168,183,169,177,206,182"/>
<area shape="rect" href="../../d8/dc6/classserial.html#ae4220a528c470f77dc9d29b8d79f5286" title=" " alt="" coords="45,208,134,235"/>
<area shape="poly" title=" " alt="" coords="206,210,135,219,134,214,206,205"/>
<area shape="rect" href="../../d7/d24/classssl_svr_connection.html#a343d873435ecc29c411717a442db77d0" title=" " alt="" coords="9,259,170,285"/>
<area shape="poly" title=" " alt="" coords="237,226,175,249,140,261,138,255,173,244,235,221"/>
<area shape="rect" href="../../da/d29/classtcp_connection.html#a16a92d81207f99b7c8a755f3922ca42a" title=" " alt="" coords="19,309,160,336"/>
<area shape="poly" title=" " alt="" coords="271,230,227,266,175,300,147,311,145,306,172,295,224,262,268,226"/>
<area shape="rect" href="../../d5/d36/classwheels_1_1buff.html#ac76d02cb8a8df2065a8d96840db8f576" title="将结果转换成标准字符串。" alt="" coords="17,360,162,387"/>
<area shape="poly" title=" " alt="" coords="285,232,239,292,209,323,175,350,152,362,150,357,172,346,205,320,235,289,281,229"/>
</map>
</div>

</div>
</div>
<a id="ad18dff8e10c0fa6e1f43f8b895d86a0a" name="ad18dff8e10c0fa6e1f43f8b895d86a0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad18dff8e10c0fa6e1f43f8b895d86a0a">&#9670;&#160;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a> &amp; <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a>&lt; realT &gt; &amp;</td>          <td class="paramname"><span class="paramname"><em>b</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00048">48</a> 行定义.</p>

</div>
</div>
<a id="ae5de32bcf5ba8ba18f6dc7898b77a61f" name="ae5de32bcf5ba8ba18f6dc7898b77a61f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5de32bcf5ba8ba18f6dc7898b77a61f">&#9670;&#160;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a> &amp; <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">mallocSharedPtr</a>&lt; realT &gt; &amp;&amp;</td>          <td class="paramname"><span class="paramname"><em>b</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00055">55</a> 行定义.</p>

</div>
</div>
<a id="afd7490728bfadb1973034cfdac02fbbd" name="afd7490728bfadb1973034cfdac02fbbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd7490728bfadb1973034cfdac02fbbd">&#9670;&#160;</a></span>operator[]()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">realT &amp; <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>pos</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00062">62</a> 行定义.</p>

</div>
</div>
<a id="aa70d2770b69c634fbe8a01351ffdb768" name="aa70d2770b69c634fbe8a01351ffdb768"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa70d2770b69c634fbe8a01351ffdb768">&#9670;&#160;</a></span>resize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::resize </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>这个方法会放弃旧的数据内容 </p>

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00147">147</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../da/d39/classwheels_1_1malloc_shared_ptr_aa70d2770b69c634fbe8a01351ffdb768_icgraph.png" border="0" usemap="#ada/d39/classwheels_1_1malloc_shared_ptr_aa70d2770b69c634fbe8a01351ffdb768_icgraph" alt=""/></div>
<map name="ada/d39/classwheels_1_1malloc_shared_ptr_aa70d2770b69c634fbe8a01351ffdb768_icgraph" id="ada/d39/classwheels_1_1malloc_shared_ptr_aa70d2770b69c634fbe8a01351ffdb768_icgraph">
<area shape="rect" title="这个方法会放弃旧的数据内容" alt="" coords="188,5,354,48"/>
<area shape="rect" href="../../d5/d36/classwheels_1_1buff.html#a515b0157323d003d74bbc7bc3435ac10" title="调整缓冲区大小" alt="" coords="5,13,140,40"/>
<area shape="poly" title=" " alt="" coords="172,29,140,29,140,24,172,24"/>
</map>
</div>

</div>
</div>
<a id="a18709a57055dc8d2e30a76924816fce4" name="a18709a57055dc8d2e30a76924816fce4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18709a57055dc8d2e30a76924816fce4">&#9670;&#160;</a></span>size() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::size </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00112">112</a> 行定义.</p>

</div>
</div>
<a id="a23b32d558ab10dba3e3b88905a001a16" name="a23b32d558ab10dba3e3b88905a001a16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23b32d558ab10dba3e3b88905a001a16">&#9670;&#160;</a></span>size() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename realT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../da/d39/classwheels_1_1malloc_shared_ptr.html">wheels::mallocSharedPtr</a>&lt; realT &gt;::size </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>指定缓冲区大小 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">len</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a> 第 <a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html#l00111">111</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/<a class="el" href="../../d0/d5c/malloc_shared_ptr_8hpp_source.html">mallocSharedPtr.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
